import requests

# 给定的 ID 列表
id_list = [
52834,
52962,
52963,
52964,
52965,
52966,
52967,
52968,
52969,
52970,
52971,
52972,
52973,
52974,
52975,
52976,
52977,
52978,
52979,
52980,
52981,
52982,
52983,
52984,
52985,
53015,
53016,
53017,
53018,
53019,
53020,
53021,
53022,
53023,
53024,
53025,
53026,
53027,
53028,
53029,
53030,
53031,
53032,
53033,
53034,
53035,
53036,
53037,
53038,
53039,
53040,
53041,
53042,
53043,
53044,
53045,
53046,
53047,
53048,
53049,
53050,
53051,
53052,
53053,
53054,
53055,
53056,
53057,
53058,
53059,
53060,
53061,
53062,
53063,
53064,
53065,
53066,
53067,
53068,
53069,
53070,
53071,
53072,
53073,
53074,
53075,
53076,
53077,
53078,
53079,
53080,
53081,
53082,
53083,
53084,
53085,
53118,
53119,
53120,
53121,
53122,
53123,
53124,
53125,
53126,
53127,
53128,
53129,
53130,
53131,
53132,
53133,
53134,
53135,
53136,
53137,
53138,
53139,
53140,
53141,
53142,
53143,
53144,
53145,
53146,
53147,
53148,
53149,
53150,
53151,
53152,
53153,
53154,
53155,
53156,
53157,
53158,
53159,
53160,
53161,
53162,
53163,
53164,
53165,
53166,
53167,
53168,
53169,
53170,
53171,
53172,
53173,
53174,
53175,
53176,
53177,
53178,
53179,
53180,
53181,
53182,
53183,
53184,
53185,
53234,
53235,
53236,
53237,
53238,
53239,
53240,
53241,
53242,
53243,
53244,
53245,
53246,
53247,
53248,
53249,
53250,
53251,
53252,
53253,
53254,
53255,
53256,
53257,
53258,
53259,
53260,
53261,
53262,
53263,
53264,
53265,
53266,
53267,
53268,
53269,
53270,
53271,
53272,
53273,
53274,
53275,
53276,
53277,
53278,
53279,
53280,
53281,
53282,
53283,
53284,
53285,
53331,
53332,
53333,
53334,
53335,
53336,
53337,
53338,
53339,
53340,
53341,
53342,
53343,
53344,
53345,
53346,
53347,
53348,
53349,
53350,
53351,
53352,
53353,
53354,
53355,
53356,
53357,
53358,
53359,
53360,
53361,
53362,
53363,
53364,
53365,
53366,
53367,
53368,
53369,
53370,
53371,
53372,
53373,
53374,
53375,
53376,
53377,
53378,
53379,
53380,
53381,
53382,
53383,
53384,
53385,
53412,
53413,
53414,
53415,
53416,
53417,
53418,
53419,
53420,
53421,
53422,
53423,
53424,
53425,
53426,
53427,
53428,
53429,
53430,
53431,
53432,
53433,
53434,
53435,
53436,
53437,
53438,
53439,
53440,
53441,
53442,
53443,
53444,
53445,
53446,
53447,
53448,
53449,
53450,
53451,
53452,
53453,
53454,
53455,
53456,
53457,
53458,
53459,
53460,
53461,
53462,
53463,
53464,
53465,
53466,
53467,
53468,
53469,
53470,
53471,
53472,
53473,
53474,
53475,
53476,
53477,
53478,
53479,
53480,
53481,
53482,
53483,
53484,
53485,
53522,
53523,
53524,
53525,
53526,
53527,
53528,
53529,
53530,
53531,
53532,
53533,
53534,
53535,
53536,
53537,
53538,
53539,
53540,
53541,
53542,
53543,
53544,
53545,
53546,
53547,
53548,
53549,
53550,
53551,
53552,
53553,
53554,
53555,
53556,
53557,
53558,
53559,
53560,
53561,
53562,
53563,
53564,
53565,
53566,
53567,
53568,
53569,
53570,
53571,
53572,
53573,
53574,
53575,
53576,
53577,
53578,
53746,
53747,
53748,
53749,
53750,
53751,
53752,
53753,
53754,
53755,
53756,
53757,
53758,
53759,
53760,
53761,
53762,
53763,
53764,
53765,
53766,
53767,
53768,
53769,
53770,
53771,
53772,
53773,
53774,
53775,
53776,
53777,
53778,
53779,
53780,
53781,
53782,
53783,
53784,
53785,
53826,
53827,
53828,
53829,
53830,
53831,
53832,
53833,
53834,
53835,
53836,
53837,
53838,
53839,
53840,
53841,
53842,
53843,
53844,
53845,
53846,
53847,
53848,
53849,
53850,
53851,
53852,
53853,
53854,
53855,
53856,
53857,
53858,
53859,
53860,
53861,
53862,
53863,
53864,
53865,
53866,
53867,
53868,
53869,
53870,
53871,
53872,
53873,
53874,
53875,
53876,
53877,
53878,
53879,
53880,
53881,
53882,
53883
]

# API 基础 URL
base_url = "http://106.52.201.90:7001/api/ccSmartStrategy/genTopic/invoke?ids="

# 请求头
headers = {
    'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}

# 每 10 个 ID 一组进行调用
batch_size = 500
for i in range(0, len(id_list), batch_size):
    batch = id_list[i:i + batch_size]  # 获取当前批次的 ID
    ids_str = ",".join(map(str, batch))  # 转换为逗号分隔的字符串
    url = base_url + ids_str  # 构造完整 URL

    print(f"请求 URL: {url}")

    # 发送 GET 请求
    response = requests.get(url, headers=headers)

    # 打印响应结果
    print(f"请求 URL: {url}")
    print(f"响应状态码: {response.status_code}")
    print(f"响应内容: {response.text}")
    print("-" * 50)  # 分隔线